<div class="contenidofijo">
<div class="ciuplans view">
        <?php $url=$this->Html->link('Plan de Estudio',array('action' => 'index')); ?>
		<?php  $tokens=array(0=>$url, 1=>"Detalle") ?>
        <?php echo $this->element("breadcrumb", array('tokens'=>$tokens))?>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Código Plan'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuplan['Ciuplan']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre Plan'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuplan['Ciuplan']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Idioma'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuplan['Ciulanguage']['name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="related">
</br>
    <button>
	  <?php echo $this->Html->link(__('New Ciusubject', true), array('controller' => 'ciusubjects', 'action' => 'add', $ciuplan['Ciuplan']['id'],$ciuplan['Ciulanguage']['id']));?>
	</button>
	<h3><?php __('Related Ciusubjects');?></h3>
	<?php if (!empty($ciuplan['Ciusubject'])):?>
        <div class="clearfix">&nbsp;</div>
	<table class="zebra" cellpadding = "0" cellspacing = "0">
	<thead>
	<tr>
		<th><?php __('Código Asignatura'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th><?php __('Asignatura prerequisito'); ?></th>
<!--		<th><?php __('ciulanguage_id'); ?></th>-->
		<th><?php __('presencial'); ?></th>
		<th><?php __('extra '); ?></th>
		<th><?php __('level'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	</thead>
	<?php
		$i = 0;
		foreach ($ciuplan['Ciusubject'] as $ciusubject):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ciusubject['id'];?></td>
			<td><?php echo $ciusubject['name'];?></td>
			<td><?php echo $ciusubject['prerequisite'];?></td>
<!--			<td><?php echo $ciusubject['ciulanguage_id'];?></td>-->
			<td><?php echo $ciusubject['presencial'];?></td>
			<td><?php echo $ciusubject['extra'];?></td>
			<td><?php echo $ciusubject['level'];?></td>
			<td class="actions">
				<?php                                  
                                    echo $this->Html->link(__('Edit', true), array('controller' => 'ciusubjects','action' => 'edit', $ciusubject['id'], $ciuplan['Ciuplan']['id'],$ciuplan['Ciulanguage']['id']));
                                        echo " | ";
                                    echo $this->Html->link(__('Delete', true), array('controller' => 'ciusubjects', 'action' => 'delete', $ciusubject['id'],$ciuplan['Ciuplan']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ciusubject['id']));
                                 ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
</div>
</div> 